<template>
  <div class="main">
    <div class="top_box">
      <div class="icon_item">
        <div class="icon icon_fjsq"></div>
        <p style="color: #409efe">附件收取</p>
      </div>
      <div class="icon_item">
        <div class="icon icon_clgx"></div>
        <p style="color: #09d89b">材料共享</p>
      </div>
      <div class="icon_item">
        <div class="icon icon_cktj"></div>
        <p style="color: #f8be21">窗口提交</p>
      </div>
    </div>

    <div class="content_box">
      <div class="materiaItem" v-for="(item,index) in materialList" :key="index">
        <div class="materiaName">
          <span>{{item.name}}</span>
          <div class="icon" :class="getType(item.type)"></div>
        </div>
        <div class="materiaChild" v-if="!item.childList == ''">
          <div v-for="(item,index) in item.childList" :key="index">
            <span>{{item.name}}</span><strong><i class="el-icon-folder-opened"></i></strong>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "MaterialList",
  data(){
    return {
      materialList:[
        {
          name:'在省内三级教学、综合医院接受连续3个月临床护理培训并考核合格的证明（包括培训计划、转科记录、成绩单）',
          type:'fjsq',
          childList:[
            {
              name:'培训计划.pdf'
            },
            {
              name: '转科记录及成绩单.jpg'
            }
          ]
        },{
          name:'护士执业注册申请审核表',
          type:'clgx',
          childList:'',
        }
        ,{
          name:'证件照片',
          type:'cktj',
          childList:'',
        }
      ]
    }
  },
  computed:{
    getType(){
      return function (val){
        switch (val){
          case 'fjsq':
            return 'icon_fjsq'
          case 'clgx':
            return 'icon_clgx'
          case 'cktj':
            return 'icon_cktj'
        }
      }
    }
  }


}
</script>

<style scoped>
.main{
  width: 100%;
  height: 100%;
  background: #fff;
  box-sizing: border-box;
  padding: 40px;
}
.icon{
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 9px;
}
.icon_fjsq{
  background: url("/img/step/icon_fjsq.png");
}
.icon_clgx{
  background: url("/img/step/icon_clgx.png");
}
.icon_cktj{
  background: url("/img/step/icon_cktj.png");
}
.icon_item{
  display: inline-block;
  margin-right: 50px;
}
.icon_item p{
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 18px;
}
.content_box{
  margin-top: 30px;
}
.materiaItem{
  padding: 20px 30px;
  border: 1px solid #e5e5e5;
  margin-bottom: 15px;
  box-shadow: 0px 5px 5px rgba(0,0,0,.05);
  border-radius: 7px;
}
.materiaName{

}
.materiaName span{

}
.materiaChild{
  margin-top: 20px;
  border-top: 1px solid #e5e5e5;
}
.materiaChild>div{
  padding-top: 10px;
  padding-left: 20px;
  border-bottom: 1px solid #e5e5e5;
  padding-block: 10px;
}
.materiaChild>div:last-child{
  border-bottom: 0;
  padding-bottom: 0px;
  margin-bottom: -5px;
}
.materiaChild>div span{

}
.materiaChild>div i{
  color: #409efe;
  cursor: pointer;
  vertical-align: middle;
  font-size: 23px;
  margin-left: 13px;
}
</style>
